package com.neusoft.dao;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.neusoft.entity.Rent;
import com.neusoft.entity.Room;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface RoomDao extends BaseDao<Room> {

    List<Room> queryAll(IPage<Room> page, @Param("bean") Room bean);

    List<Room> queryAllByLimit(@Param("offset") int offset, @Param("limit") int limit, Room room);

    Room queryById(@Param("id") Integer id);
}
